package com.zzxx.service;



import com.zzxx.entity.Orders;
import com.github.pagehelper.PageInfo;
import com.zzxx.entity.QrInfo;
import com.zzxx.entity.Ticket;
import com.zzxx.entity.TicketAndRule;
import com.zzxx.exceptions.PriceException;
import com.zzxx.exceptions.QrException;
import org.springframework.web.multipart.MultipartFile;

import java.text.ParseException;
import java.util.List;

public interface TicketService {
    Ticket findOne(String tid);

    PageInfo<Ticket> queryByGid(Integer start, Integer pageSize, String gid);

    PageInfo<Orders> queryTicketByUid(Integer start, Integer pageSize, String uid);

    Orders findGymTicketByOid(String oid);

    void buy(Integer num, Orders order) throws PriceException;

    int tuiById(String id);

	String scanQr(MultipartFile uploadFile) throws Exception;

	void checkMessage(String message, int i) throws QrException;


	void packageQrInfo(QrInfo qrInfo, String oid);


    void deleteNum(String id,String num);

	List<Ticket> findManagerTicket(String id, String gid);

	TicketAndRule findTar(String id, String tid);

	void updateTar(TicketAndRule tar);

	void addTar(TicketAndRule tar);

	void delete(String tid);

    Boolean tui(String id, String time) throws ParseException;
}
